﻿/**
*  DLNA Player
*  Copyright (C) 2017-2019 GPE-SSE
*
* @file     cdebug.h
* @brief    Define debug message
*
* @author   Shawn.Ji
* @version  v0.1.0
* @date     2019-02-15
* @copyright GPE-SSE
*
* @remark
* 2019/02/15 v0.1.0 Shawn.Ji
* - change some define
*
* 2017/12/05 v0.0.0 Shawn.Ji
* - create file
*/
#ifndef DEFDEBUG_H
#define DEFDEBUG_H

#include <QDebug>
#include <QMessageLogger>

#define myDebug(x) qDebug()<<"["<<__LINE__<<"|"<<__FUNCTION__<<"]"<<"\n"<<x

//debug
#define DEBUG_NULL_PTR      "NULL POINTER!"
#define DEBUG_NULL_SPK      "NULL SPEAKER!"
#define DEBUG_NULL_STR      "NULL STRING!"
#define DEBUG_NULL_TRK      "NULL TRACK!"

#define DEBUG_EMPTY_LIST    "EMPTY LIST!"
#define DEBUG_EMPTY_STR     "EMPTY STRING!"

#define DEBUG_INVAL_DAT     "INVALID DATA!"
#define DEBUG_INVAL_IDX     "INVALID INDEX!"

#define DEBUG_ERROR     "ERROR: "
#define DEBUG_WARNING   "WARNING: "
#define DEBUG_INFO      "INFO: "
#define DEBUG_TEST_ONLY "TEST: "

#endif // DEFDEBUG_H
